<?php

namespace App\Models;

use App\Enums\TokenLockType;
use App\Enums\TokenStatus;
use BenSampo\Enum\Traits\CastsEnums;

/**
 * @mixin IdeHelperProductToken
 */
class ProductToken extends BaseModel
{
    use CastsEnums;

    protected $casts = [
        'status' => TokenStatus::class,
        'lock_type' => TokenLockType::class,
    ];

    public function product()
    {
        return $this->belongsTo(Product::class);
    }
}
